import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './api/axios.config.js'
/* import axios from 'axios'
Vue.prototype.$http = axios; */
// 引入jquery
// import $ from 'jquery'

// 引入页面通用样式
import './common/scss/index.scss'

// 引入全局过滤器
import './common/js/filters'

// 全局注册组件
import './components/OverAll.js'

// 引入highcharts
import HighchartsVue from 'highcharts-vue'
Vue.use(HighchartsVue)

// 开启vue调试工具
Vue.config.devtools = false
// 引入iconfont.js
import './common/js/iconfont'
import './common/js/iconfont2'

Vue.config.productionTip = false;
window.isEmptyObject = function( obj ) {
	var name;
	for ( name in obj ) {
		return false;
	}
	return true;
}
window.vm =  new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
Vue.mixin({
	methods:{
		_message(type,message){
			this.$message({
				type,
				message,
				showClose: true,
			})
		}
	}
})